package com.swe727.spring2011.constraint1.client;

import java.rmi.RemoteException;

import com.swe727.spring2011.constraint1.coordinate.Coordinate;

public class ClientMedevacHandler implements ClientMedevacRemote {
	private final NodeController NODECONTROLLER;
	public ClientMedevacHandler(NodeController nodeController) {
		NODECONTROLLER = nodeController;
	}
	@Override
	public void receiveMedevac(Coordinate coordinate) throws RemoteException {
		System.out.println("Received medevac request at coordinate [" + coordinate.getX() + ", " + coordinate.getY() + "]");
		NODECONTROLLER.ReceivedMedevace(coordinate);
	}
}
